package com.haoxuer.discover.team.data.entity;

import com.haoxuer.discover.team.data.enums.TeamMemberType;
import com.haoxuer.discover.data.annotations.FormAnnotation;
import com.haoxuer.discover.user.data.entity.UserInfo;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@FormAnnotation(title = "团队", add = "添加团队", list = "任务团队", update = "更新团队")
@Entity
@Table(name = "bs_team_member")
public class TeamMember extends TeamEntity {

  @ManyToOne(fetch = FetchType.LAZY)
  private UserInfo member;


  public UserInfo getMember() {
    return member;
  }

  public void setMember(UserInfo member) {
    this.member = member;
  }

  private TeamMemberType memberType;


  public TeamMemberType getMemberType() {
    return memberType;
  }

  public void setMemberType(TeamMemberType memberType) {
    this.memberType = memberType;
  }
}
